package com.abc.intellihome.util;

import lombok.Data;

@Data
public class ResultInfo {
    private Object resultData;
    private ResultType resultType;
    private String msg;



    public static ResultInfo getSuccessInfo(){
        ResultInfo resultInfo = new ResultInfo();
        resultInfo.setResultType(ResultType.success);
        return resultInfo;
    }

    public static ResultInfo getFailInfo(){
        ResultInfo resultInfo = new ResultInfo();
        resultInfo.setResultType(ResultType.fail);
        return resultInfo;
    }

}

